package com.piece.core.web.exception;

import com.piece.core.framework.constant.ExceptionAuthConstants;
import com.piece.core.framework.util.basic.I18nUtil;
import org.springframework.security.core.AuthenticationException;

/**
 * 登录失效异常类
 */
public class SessionInvalidateException extends AuthenticationException {

    public SessionInvalidateException() {
        super(I18nUtil.message(ExceptionAuthConstants.LOGIN_RETRY));
    }

    public SessionInvalidateException(String message) {
        super(message);
    }
}
